<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="a_vuejs/vue.global.js"></script>
</head>

<body>

<div id="myApp">
    <h3>v-on:禁止表单提交 不让表单提交 调用我们自己的方法</h3>
    <form action="https://www.baidu.com" v-on:submit.prevent="login">
        <input type="submit" value="提交">
    </form>
</div>

</body>

<script>
    const app = Vue.createApp({
        methods:{
            login(){
                console.log('登录....')
            }
        }
    }).mount('#myApp')
</script>

</html>